#pragma once
#include "DictProducer.h"

class Dictionary{
public:
    Dictionary(const string datapath);

    vector<pair<string, size_t>>& getEnDict();
    map<string, set<int>>& getEnIndex();
    vector<pair<string, size_t>>& getCnDict();
    map<string, set<int>>& getCnIndex();

private:
    void initEn();
    void initCn();

    string _datapath;
    vector<pair<string, size_t>> _en_dict;
    map<string, set<int>> _en_index;
    vector<pair<string, size_t>> _cn_dict;
    map<string, set<int>> _cn_index;
};